
    /**  
    * @Title: HttpConstant.java
    * @Package com.efast.cafe.commponent.es.http.constant
    * @Description: TODO(用一句话描述该文件做什么)
    * @author Administrator
    * @date 2018年10月20日
    * @version V1.0  
    */
    
package com.efast.cafe.commponent.es.http.constant;

import java.util.concurrent.ConcurrentHashMap;

/**
    * @ClassName: HttpConstant
    * @Description: TODO(这里用一句话描述这个类的作用)
    * @author Administrator
    * @date 2018年10月20日
    *
    */

public class HttpConstant {
	
	private static ConcurrentHashMap<String,String> httpServiceClassMap = new ConcurrentHashMap<String,String>();
	
	/**
	 * 获取来源系统的私钥的key的前缀
	 */
	public static final String HTTP_SECURET_PREFIX="http.securet.";
	/**
	 * webservice是否启用缓存日志功能
	 */
	public static final String HTTP_LOG_ENABLE_KEY="http.log.enable";
	
	/**
	 * http接口处理类的扫描包路径key
	 */
	public static final String HTTP_BASEBACKAGE="http.basePackage";
	
	public static String getHttpServiceClass(String key){
		return httpServiceClassMap.get(key);
	}
	
	public static void setHttpServiceClass(String key,String cla){
		httpServiceClassMap.put(key, cla);
	}
	
	public class RetCode{
		public final static String PARAM_NULL="PARAM_NULL";
		public final static String CONFIG_NULL="CONFIG_NULL";
		public final static String VALUE_ERROR="VALUE_ERROR";
	}
}
